<?php
// +----------------------------------------------------------------------
// | 有小象汇 自研正版源码 赋能开发者
// +----------------------------------------------------------------------
// | Copyright (c) 2017~2023 http://www.uxphp.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed 有小象汇并不是自由软件，未经许可不能去掉有小象汇相关版权
// +----------------------------------------------------------------------
// | Author:  有小象汇
// +----------------------------------------------------------------------

namespace app\api\controller\v1\car;


use app\Request;
use app\services\car\BaseSuggestServices;

class BaseSuggestController
{
    /**
     * 添加建议
     * @param Request $request
     * @param BaseSuggestServices $services
     * @return mixed
     */
    public function setUserFeedback(Request $request,BaseSuggestServices $services){
        $data = $request->postMore([
            ['content',''],
            ['thumb',''],
        ]);
        $data['uid'] = $request->uid();
        return app('json')->success($services->setUserFeedback($data));
    }
}
